<!--
 * @Author: 詹真琦(legendryztachi@gmail.com)
 * @Date: 2022-06-13 10:33:33
 * @LastEditors: 詹真琦(legendryztachi@gmail.com)
 * @LastEditTime: 2022-08-16 16:11:16
 * @Description: 
-->
<template>
  <div class="header-wrap">
    <div class="header-content">
      <div class="logo" title="">
        <img
          :src="`${ctxPath}/entry/assets/images/news_logo.png`"
          width="39"
          height="39"
          class="logo-img"
        />
        <span class="logo-name">{{ i18n('application_8_label') }}</span>
      </div>
    </div>
  </div>
</template>

<script>
  let ctxPath = window._basePath;
  export default {
    name: 'Header',
    data() {
      return {
        ctxPath: ctxPath
      };
    },
    methods: {
      i18n(code) {
        return $.i18n(code);
      }
    }
  };
</script>

<style lang="scss" scoped>
  .header-wrap {
    height: 60px;
    line-height: 60px;
    background-color: #c8423c;

    .header-content {
      width: 1150px;
      height: 60px;
      margin: 0 auto;

      .logo {
        //float: left;
        height: 60px;
        cursor: pointer;

        .logo-img {
          display: inline-block;
          float: left;
          margin-top: 10px;
        }
      }

      .logo-name {
        margin-left: 10px;
        font-size: 18px;
        color: #fff;
      }
    }
  }
</style>
